package com.his.service.impl;

import java.util.List;
 
import org.springframework.stereotype.Service;

import com.his.domain.PicSource;
import com.his.mapper.PicSourceDao;
import com.his.service.BaseService;
import com.his.service.PicSourceService;

import org.springframework.beans.factory.annotation.Autowired;
 

 
@Service
public   class PicSourceServiceImpl extends BaseService implements PicSourceService{
 

	@Autowired
	private PicSourceDao entityDao;
 
	 

	@Override
	public List<PicSource> getPics(String type,String id,long time,int limit) {
		return entityDao.getPics(  type,id,time,limit);
 
	}



	@Override
	public List<PicSource> getNewPic(String type, String id, long time, int limit) {
		// TODO Auto-generated method stub
		return entityDao.getNewPic(  type,id,time,limit);
	}



	@Override
	public void addPdesc(String pdesc, String puid, String fname) {
		// TODO Auto-generated method stub
		entityDao.addPdesc(  pdesc,puid,fname );
	}



	@Override
	public void addPdesc(PicSource pic) {
		// TODO Auto-generated method stub
		entityDao.addPdesc(  pic );
	}


}

